﻿<!DOCTYPE html>
<!--法律法规--信息提醒-->
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <title></title>
</head>

<body>
    
<div id="app" v-cloak>   
        <div class="new_title"><strong><img src="/static/images/icon1.png" />消息提醒列表</strong></div>
        <!--表格开始-->
        <el-table stripe ref="table" :data="ListItem.tableData" :row-key="getRowKeys" :height="ListItem.tableHeight"
            border @selection-change="handleSelectionChange" row-style="height:10px" style="width: 100%;">
            <el-table-column type="index" :label="col.SequenceNumber" :index="indexMethod" width="50"
                show-overflow-tooltip="true"></el-table-column>
            <el-table-column prop="title" :label="InfoRemind.title" min-width="180" show-overflow-tooltip="true">
            </el-table-column>
            <el-table-column prop="main" :label="InfoRemind.main" min-width="180" show-overflow-tooltip="true">
            </el-table-column>
            <el-table-column prop="time" :label="InfoRemind.time" width="120">
            </el-table-column>
            <el-table-column prop="endTime" :label="InfoRemind.endTime" width="120">
            </el-table-column>
            <el-table-column prop="disposeState" :label="InfoRemind.disposeState" width="90">
                <template scope="scope">
                    <span v-if="scope.row.disposeState == '未处理' "
                        style="background-color:#818181;color: #fff;padding: 0 10px;border-radius: 3px">{{ scope.row.disposeState }}</span>
                    <span v-else
                        style="background-color:#3daf35;color: #fff;padding: 0 10px;border-radius: 3px">{{ scope.row.disposeState }}</span>
                </template>
            </el-table-column>
            <el-table-column prop="readState" :label="InfoRemind.readState" width="80">
                <template scope="scope">
                    <span v-if="scope.row.readState == '未读' "
                        style="background-color:#818181;color: #fff;padding: 0 10px;border-radius: 3px">{{ scope.row.readState }}</span>
                    <span v-else
                        style="background-color:#006ab6;color: #fff;padding: 0 10px;border-radius: 3px">{{ scope.row.readState }}</span>
                </template>
            </el-table-column>

        </el-table>
        <!--表格结束-->
        <!--分页开始-->
        <el-row type="flex" justify="end">
            <el-pagination ref="page" @size-change="handleSizeChange" @current-change="handleCurrentChange"
                :current-page="ListItem.currentPage" :page-sizes="ListItem.pagesizes" :page-size="ListItem.pagesize"
                :layout="ListItem.layout" :total="ListItem.total">
            </el-pagination>
        </el-row>
        <!--分页结束-->
        <el-dialog title="管理制度" :visible.sync="ListItem.dialogVisible" @close='closeDialog' width="80%" height="80%"
            top="10vh" fullscreen="true">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>

    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                //表单内容
                ListItem: ListItem,

                formInline: {
                    model: {},
                    offset: 0,
                    limit: 10
                }
            },
            mounted: function () {
                this.GetPageData(1);
                //列表高度自适应
                tablehigh(this);
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                indexMethod: function (index) {
                    return (this.ListItem.currentPage - 1) * this.ListItem.pagesize + index + 1;
                },
                //获取分页数据
                GetPageData: function (currentIndex) {
                    GetPageData(this, currentIndex, '/api/InfoRemind/GetList')
                },
            }
        });
    </script>
</body>

</html>